/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-25 19:44:17
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-25 19:45:23
 * @别瞎看: 你个无脑牛马
 */
/**
 * Test03Substring
 */
public class Test03Substring {

    public static void main(String[] args) {
        String str="Hello,World!";
        String newStr=str.substring(0,5);
        System.out.println(newStr);//         Hello


        String newStr1=str.substring(0);
        System.out.println(newStr1);//        Hello,World!

        String newStr2=str.substring(0,str.length());
        System.out.println(newStr2);//        Hello,World!
    }
}